import * as actionType from "./actionType"

// 默认初始数据
const initState = {
    id: '',
    preLoanMangeStore: []
}

// 调用方法判定执行
function reducer(state = initState, action) {
    // console.log('action',action);
    switch (action.type) {
        case actionType.PRE_NOGET:
            return [
                //  ...state,
                ...action.arr
            ]
        case actionType.EDIT_ID:
            return [
                state,
                {
                    id: action.id
                }
            ]
        default:
            return state

    }
}

export default reducer